package android07.newtop.holder;

import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;

import android07.newtop.R;
import android07.newtop.model.ApiService;
import android07.newtop.model.bean.PictureGallery;
import android07.newtop.utils.GlideUtil;


/**
 * Created by hy on 2016.8.13
 */
public class PictureShowHolder extends BaseViewHolder<PictureGallery.TngouBean> {


    public ImageView imageView;



    public PictureShowHolder(ViewGroup parent) {
        super(parent, R.layout.picture_show_item);
        imageView = $(R.id.imageView);

    }

    @Override
    public void setData(PictureGallery.TngouBean data) {
        super.setData(data);

        GlideUtil.setCircleImageUrl(ApiService.PICTURE_ROOT_LOADURL+data.getImg(),imageView,5);

    }


}
